<template>
  <div class="card">
    <img :src="item.picUrl?item.picUrl:item.coverImgUrl | picUrl" alt="" />
    <span>{{ item.playCount | count }}</span>
  </div>
</template>

<script>
export default {
  props: {
    item: Object
  }
};
</script>

<style lang="less" scoped>
.card {
  color: white;
  position: relative;
  img {
    width: 100%;
    display: block;
  }
  span {
    position: absolute;
    z-index: 1;
    top: 3px;
    right: 3px;
    font-size: 12px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    &::after {
      content: "";
      display: block;
      width: 12px;
      height: 12px;
      position: absolute;
      background: url(../assets/headset.svg);
      top: 2px;
      left: -14px;
    }
  }
}
</style>